<?php
$pdo = new PDO('mysql:host=localhost;dbname=oa5', 'root', '123456');

echo "检查 oa_contract 表结构:\n";
$stmt = $pdo->query("DESCRIBE oa_contract");
$cols = $stmt->fetchAll();
foreach ($cols as $col) {
    echo "  - " . $col['Field'] . "\n";
}

echo "\n检查 oa_customer 表结构 (前20个字段):\n";
$stmt = $pdo->query("DESCRIBE oa_customer");
$cols = $stmt->fetchAll();
foreach ($cols as $col) {
    echo "  - " . $col['Field'] . "\n";
}
